package router

import (
	"api-getway/handler/api"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	r.POST("upload", api.Upload)
	r.POST("sms", api.SendSms)
	r.POST("register", api.Register)
	r.POST("login", api.Login)

	r.POST("add", api.AddVideo)
	r.POST("check", api.CheckVideo)
	r.GET("video/list", api.VideoList)
	r.GET("video/info", api.VideoInfo)
	r.GET("episode/list", api.EpisodeList)

	r.POST("create/record", api.CreatePlayRecord)
	r.GET("list/record", api.PlayRecordList)
	r.POST("del/record", api.PlayRecordDel)

	r.POST("sync", api.SyncToEs)
	r.POST("total/hot", api.TotalHot)

	r.GET("the/hot", api.THeHot)
}
